<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__sysclk__mf__funcs.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Functions<div class="ingroups"><a class="el" href="group__group__sysclk.html">SysClk       (System Clock)</a> &raquo; <a class="el" href="group__group__sysclk__mf.html">Medium Frequency Domain Clock</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga283d5413436f7a9f05b24d52ac2026be"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysclk__mf__funcs.html#ga283d5413436f7a9f05b24d52ac2026be">Cy_SysClk_MfoEnable</a> (bool deepSleepEnable)</td></tr>
<tr class="memdesc:ga283d5413436f7a9f05b24d52ac2026be"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the MFO.  <a href="#ga283d5413436f7a9f05b24d52ac2026be">More...</a><br /></td></tr>
<tr class="separator:ga283d5413436f7a9f05b24d52ac2026be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1dd74d05d2b8b2d0b5ef588a304c2a66"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysclk__mf__funcs.html#ga1dd74d05d2b8b2d0b5ef588a304c2a66">Cy_SysClk_MfoIsEnabled</a> (void)</td></tr>
<tr class="memdesc:ga1dd74d05d2b8b2d0b5ef588a304c2a66"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reports whether MFO is enabled or not.  <a href="#ga1dd74d05d2b8b2d0b5ef588a304c2a66">More...</a><br /></td></tr>
<tr class="separator:ga1dd74d05d2b8b2d0b5ef588a304c2a66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf8ca8fc33fc99fd7c7af45048ff3e17e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysclk__mf__funcs.html#gaf8ca8fc33fc99fd7c7af45048ff3e17e">Cy_SysClk_MfoDisable</a> (void)</td></tr>
<tr class="memdesc:gaf8ca8fc33fc99fd7c7af45048ff3e17e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the MFO.  <a href="#gaf8ca8fc33fc99fd7c7af45048ff3e17e">More...</a><br /></td></tr>
<tr class="separator:gaf8ca8fc33fc99fd7c7af45048ff3e17e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga195a613b088f27c5d7667a6fecb0bbbc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysclk__mf__funcs.html#ga195a613b088f27c5d7667a6fecb0bbbc">Cy_SysClk_ClkMfEnable</a> (void)</td></tr>
<tr class="memdesc:ga195a613b088f27c5d7667a6fecb0bbbc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the CLK_MF.  <a href="#ga195a613b088f27c5d7667a6fecb0bbbc">More...</a><br /></td></tr>
<tr class="separator:ga195a613b088f27c5d7667a6fecb0bbbc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab27fbf5f4e7b9856014fbf7c59eff78b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysclk__mf__funcs.html#gab27fbf5f4e7b9856014fbf7c59eff78b">Cy_SysClk_ClkMfIsEnabled</a> (void)</td></tr>
<tr class="memdesc:gab27fbf5f4e7b9856014fbf7c59eff78b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reports whether CLK_MF is enabled or not.  <a href="#gab27fbf5f4e7b9856014fbf7c59eff78b">More...</a><br /></td></tr>
<tr class="separator:gab27fbf5f4e7b9856014fbf7c59eff78b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8cc7f7635c71f5ea4da74950bc6521a4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysclk__mf__funcs.html#ga8cc7f7635c71f5ea4da74950bc6521a4">Cy_SysClk_ClkMfDisable</a> (void)</td></tr>
<tr class="memdesc:ga8cc7f7635c71f5ea4da74950bc6521a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the CLK_MF.  <a href="#ga8cc7f7635c71f5ea4da74950bc6521a4">More...</a><br /></td></tr>
<tr class="separator:ga8cc7f7635c71f5ea4da74950bc6521a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga54c1e75dcdea293cdfd2662ceffa26e0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysclk__mf__funcs.html#ga54c1e75dcdea293cdfd2662ceffa26e0">Cy_SysClk_ClkMfSetDivider</a> (uint32_t divider)</td></tr>
<tr class="memdesc:ga54c1e75dcdea293cdfd2662ceffa26e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the clock divider for CLK_MF.  <a href="#ga54c1e75dcdea293cdfd2662ceffa26e0">More...</a><br /></td></tr>
<tr class="separator:ga54c1e75dcdea293cdfd2662ceffa26e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga420525301a89c8f5f45c97a0fb37ea6f"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysclk__mf__funcs.html#ga420525301a89c8f5f45c97a0fb37ea6f">Cy_SysClk_ClkMfGetDivider</a> (void)</td></tr>
<tr class="memdesc:ga420525301a89c8f5f45c97a0fb37ea6f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the clock divider of CLK_MF.  <a href="#ga420525301a89c8f5f45c97a0fb37ea6f">More...</a><br /></td></tr>
<tr class="separator:ga420525301a89c8f5f45c97a0fb37ea6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf917222c5e1a0bb3dc2f7d398dcff05c"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysclk__mf__funcs.html#gaf917222c5e1a0bb3dc2f7d398dcff05c">Cy_SysClk_ClkMfGetFrequency</a> (void)</td></tr>
<tr class="memdesc:gaf917222c5e1a0bb3dc2f7d398dcff05c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reports the output clock signal frequency of CLK_MF.  <a href="#gaf917222c5e1a0bb3dc2f7d398dcff05c">More...</a><br /></td></tr>
<tr class="separator:gaf917222c5e1a0bb3dc2f7d398dcff05c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaacb30352c5e747c40be8f15b673ee54a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysclk__mf__funcs.html#gaacb30352c5e747c40be8f15b673ee54a">Cy_SysClk_ClkMfSetSource</a> (<a class="el" href="group__group__sysclk__clk__mf__enums.html#gab217cdbbda6d1b5c9cd109c3e8bf5bfb">cy_en_clkmf_in_sources_t</a> source)</td></tr>
<tr class="memdesc:gaacb30352c5e747c40be8f15b673ee54a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the source for the Medium frequency clock(clkMf).  <a href="#gaacb30352c5e747c40be8f15b673ee54a">More...</a><br /></td></tr>
<tr class="separator:gaacb30352c5e747c40be8f15b673ee54a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga336ac15ebc0e4d002717b0b15cd04bed"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sysclk__clk__mf__enums.html#gab217cdbbda6d1b5c9cd109c3e8bf5bfb">cy_en_clkmf_in_sources_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysclk__mf__funcs.html#ga336ac15ebc0e4d002717b0b15cd04bed">Cy_SysClk_ClkMfGetSource</a> (void)</td></tr>
<tr class="memdesc:ga336ac15ebc0e4d002717b0b15cd04bed"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reports the source for the Medium frequency clock (clkMf).  <a href="#ga336ac15ebc0e4d002717b0b15cd04bed">More...</a><br /></td></tr>
<tr class="separator:ga336ac15ebc0e4d002717b0b15cd04bed"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga283d5413436f7a9f05b24d52ac2026be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga283d5413436f7a9f05b24d52ac2026be">&#9670;&nbsp;</a></span>Cy_SysClk_MfoEnable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SysClk_MfoEnable </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>deepSleepEnable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the MFO. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">deepSleepEnable</td><td>enables MFO operation is Deep Sleep low power mode.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: MFO is needed to source LCD with 1MHz in Deep Sleep mode. */</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__sysclk__mf__funcs.html#ga283d5413436f7a9f05b24d52ac2026be">Cy_SysClk_MfoEnable</a>(<span class="keyword">true</span>); <span class="comment">/* Enable MFO with Deep Sleep operation */</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__sysclk__mf__funcs.html#gab27fbf5f4e7b9856014fbf7c59eff78b">Cy_SysClk_ClkMfIsEnabled</a>()) <span class="comment">/* If CLK_MF is already enabled */</span></div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__sysclk__mf__funcs.html#ga8cc7f7635c71f5ea4da74950bc6521a4">Cy_SysClk_ClkMfDisable</a>();   <span class="comment">/* Disable CLK_MF */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (2UL != <a class="code" href="group__group__sysclk__mf__funcs.html#ga420525301a89c8f5f45c97a0fb37ea6f">Cy_SysClk_ClkMfGetDivider</a>()) <span class="comment">/* Check the divider */</span></div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__sysclk__mf__funcs.html#ga54c1e75dcdea293cdfd2662ceffa26e0">Cy_SysClk_ClkMfSetDivider</a>(2UL); <span class="comment">/* Set CLK_MF divider */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <a class="code" href="group__group__sysclk__mf__funcs.html#ga195a613b088f27c5d7667a6fecb0bbbc">Cy_SysClk_ClkMfEnable</a>();        <span class="comment">/* Enable CLK_MF */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Check the CLK_MF frequency */</span></div><div class="line">    uint32_t clkMfreq = <a class="code" href="group__group__sysclk__mf__funcs.html#gaf917222c5e1a0bb3dc2f7d398dcff05c">Cy_SysClk_ClkMfGetFrequency</a>();</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga1dd74d05d2b8b2d0b5ef588a304c2a66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1dd74d05d2b8b2d0b5ef588a304c2a66">&#9670;&nbsp;</a></span>Cy_SysClk_MfoIsEnabled()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Cy_SysClk_MfoIsEnabled </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reports whether MFO is enabled or not. </p>
<dl class="section return"><dt>Returns</dt><dd>false - disabled <br />
true - enabled</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: MFO is not more needed so could be disabled. */</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__sysclk__mf__funcs.html#ga8cc7f7635c71f5ea4da74950bc6521a4">Cy_SysClk_ClkMfDisable</a>(); <span class="comment">/* Disable CLK_MF */</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__sysclk__mf__funcs.html#ga1dd74d05d2b8b2d0b5ef588a304c2a66">Cy_SysClk_MfoIsEnabled</a>()) <span class="comment">/* If MFO enabled */</span></div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__sysclk__mf__funcs.html#gaf8ca8fc33fc99fd7c7af45048ff3e17e">Cy_SysClk_MfoDisable</a>(); <span class="comment">/* Disable MF0 */</span></div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gaf8ca8fc33fc99fd7c7af45048ff3e17e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf8ca8fc33fc99fd7c7af45048ff3e17e">&#9670;&nbsp;</a></span>Cy_SysClk_MfoDisable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SysClk_MfoDisable </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the MFO. </p>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: MFO is not more needed so could be disabled. */</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__sysclk__mf__funcs.html#ga8cc7f7635c71f5ea4da74950bc6521a4">Cy_SysClk_ClkMfDisable</a>(); <span class="comment">/* Disable CLK_MF */</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__sysclk__mf__funcs.html#ga1dd74d05d2b8b2d0b5ef588a304c2a66">Cy_SysClk_MfoIsEnabled</a>()) <span class="comment">/* If MFO enabled */</span></div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__sysclk__mf__funcs.html#gaf8ca8fc33fc99fd7c7af45048ff3e17e">Cy_SysClk_MfoDisable</a>(); <span class="comment">/* Disable MF0 */</span></div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga195a613b088f27c5d7667a6fecb0bbbc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga195a613b088f27c5d7667a6fecb0bbbc">&#9670;&nbsp;</a></span>Cy_SysClk_ClkMfEnable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SysClk_ClkMfEnable </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the CLK_MF. </p>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: MFO is needed to source LCD with 1MHz in Deep Sleep mode. */</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__sysclk__mf__funcs.html#ga283d5413436f7a9f05b24d52ac2026be">Cy_SysClk_MfoEnable</a>(<span class="keyword">true</span>); <span class="comment">/* Enable MFO with Deep Sleep operation */</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__sysclk__mf__funcs.html#gab27fbf5f4e7b9856014fbf7c59eff78b">Cy_SysClk_ClkMfIsEnabled</a>()) <span class="comment">/* If CLK_MF is already enabled */</span></div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__sysclk__mf__funcs.html#ga8cc7f7635c71f5ea4da74950bc6521a4">Cy_SysClk_ClkMfDisable</a>();   <span class="comment">/* Disable CLK_MF */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (2UL != <a class="code" href="group__group__sysclk__mf__funcs.html#ga420525301a89c8f5f45c97a0fb37ea6f">Cy_SysClk_ClkMfGetDivider</a>()) <span class="comment">/* Check the divider */</span></div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__sysclk__mf__funcs.html#ga54c1e75dcdea293cdfd2662ceffa26e0">Cy_SysClk_ClkMfSetDivider</a>(2UL); <span class="comment">/* Set CLK_MF divider */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <a class="code" href="group__group__sysclk__mf__funcs.html#ga195a613b088f27c5d7667a6fecb0bbbc">Cy_SysClk_ClkMfEnable</a>();        <span class="comment">/* Enable CLK_MF */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Check the CLK_MF frequency */</span></div><div class="line">    uint32_t clkMfreq = <a class="code" href="group__group__sysclk__mf__funcs.html#gaf917222c5e1a0bb3dc2f7d398dcff05c">Cy_SysClk_ClkMfGetFrequency</a>();</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gab27fbf5f4e7b9856014fbf7c59eff78b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab27fbf5f4e7b9856014fbf7c59eff78b">&#9670;&nbsp;</a></span>Cy_SysClk_ClkMfIsEnabled()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Cy_SysClk_ClkMfIsEnabled </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reports whether CLK_MF is enabled or not. </p>
<dl class="section return"><dt>Returns</dt><dd>false - disabled <br />
true - enabled</dd></dl>
<dl class="section note"><dt>Note</dt><dd>This API is available for CAT1A and CAT1B devices.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: MFO is needed to source LCD with 1MHz in Deep Sleep mode. */</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__sysclk__mf__funcs.html#ga283d5413436f7a9f05b24d52ac2026be">Cy_SysClk_MfoEnable</a>(<span class="keyword">true</span>); <span class="comment">/* Enable MFO with Deep Sleep operation */</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__sysclk__mf__funcs.html#gab27fbf5f4e7b9856014fbf7c59eff78b">Cy_SysClk_ClkMfIsEnabled</a>()) <span class="comment">/* If CLK_MF is already enabled */</span></div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__sysclk__mf__funcs.html#ga8cc7f7635c71f5ea4da74950bc6521a4">Cy_SysClk_ClkMfDisable</a>();   <span class="comment">/* Disable CLK_MF */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (2UL != <a class="code" href="group__group__sysclk__mf__funcs.html#ga420525301a89c8f5f45c97a0fb37ea6f">Cy_SysClk_ClkMfGetDivider</a>()) <span class="comment">/* Check the divider */</span></div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__sysclk__mf__funcs.html#ga54c1e75dcdea293cdfd2662ceffa26e0">Cy_SysClk_ClkMfSetDivider</a>(2UL); <span class="comment">/* Set CLK_MF divider */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <a class="code" href="group__group__sysclk__mf__funcs.html#ga195a613b088f27c5d7667a6fecb0bbbc">Cy_SysClk_ClkMfEnable</a>();        <span class="comment">/* Enable CLK_MF */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Check the CLK_MF frequency */</span></div><div class="line">    uint32_t clkMfreq = <a class="code" href="group__group__sysclk__mf__funcs.html#gaf917222c5e1a0bb3dc2f7d398dcff05c">Cy_SysClk_ClkMfGetFrequency</a>();</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga8cc7f7635c71f5ea4da74950bc6521a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8cc7f7635c71f5ea4da74950bc6521a4">&#9670;&nbsp;</a></span>Cy_SysClk_ClkMfDisable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SysClk_ClkMfDisable </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the CLK_MF. </p>
<dl class="section note"><dt>Note</dt><dd>This API is available for CAT1A and CAT1B devices.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: MFO is not more needed so could be disabled. */</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__sysclk__mf__funcs.html#ga8cc7f7635c71f5ea4da74950bc6521a4">Cy_SysClk_ClkMfDisable</a>(); <span class="comment">/* Disable CLK_MF */</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__sysclk__mf__funcs.html#ga1dd74d05d2b8b2d0b5ef588a304c2a66">Cy_SysClk_MfoIsEnabled</a>()) <span class="comment">/* If MFO enabled */</span></div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__sysclk__mf__funcs.html#gaf8ca8fc33fc99fd7c7af45048ff3e17e">Cy_SysClk_MfoDisable</a>(); <span class="comment">/* Disable MF0 */</span></div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga54c1e75dcdea293cdfd2662ceffa26e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga54c1e75dcdea293cdfd2662ceffa26e0">&#9670;&nbsp;</a></span>Cy_SysClk_ClkMfSetDivider()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SysClk_ClkMfSetDivider </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>divider</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the clock divider for CLK_MF. </p>
<dl class="section pre"><dt>Precondition</dt><dd>If the CLK_MF is already enabled - it should be disabled prior to use this function by <a class="el" href="group__group__sysclk__mf__funcs.html#ga8cc7f7635c71f5ea4da74950bc6521a4">Cy_SysClk_ClkMfDisable</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">divider</td><td>divider value between 1 and 256.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>This API is available for CAT1A and CAT1B devices.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: MFO is needed to source LCD with 1MHz in Deep Sleep mode. */</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__sysclk__mf__funcs.html#ga283d5413436f7a9f05b24d52ac2026be">Cy_SysClk_MfoEnable</a>(<span class="keyword">true</span>); <span class="comment">/* Enable MFO with Deep Sleep operation */</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__sysclk__mf__funcs.html#gab27fbf5f4e7b9856014fbf7c59eff78b">Cy_SysClk_ClkMfIsEnabled</a>()) <span class="comment">/* If CLK_MF is already enabled */</span></div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__sysclk__mf__funcs.html#ga8cc7f7635c71f5ea4da74950bc6521a4">Cy_SysClk_ClkMfDisable</a>();   <span class="comment">/* Disable CLK_MF */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (2UL != <a class="code" href="group__group__sysclk__mf__funcs.html#ga420525301a89c8f5f45c97a0fb37ea6f">Cy_SysClk_ClkMfGetDivider</a>()) <span class="comment">/* Check the divider */</span></div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__sysclk__mf__funcs.html#ga54c1e75dcdea293cdfd2662ceffa26e0">Cy_SysClk_ClkMfSetDivider</a>(2UL); <span class="comment">/* Set CLK_MF divider */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <a class="code" href="group__group__sysclk__mf__funcs.html#ga195a613b088f27c5d7667a6fecb0bbbc">Cy_SysClk_ClkMfEnable</a>();        <span class="comment">/* Enable CLK_MF */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Check the CLK_MF frequency */</span></div><div class="line">    uint32_t clkMfreq = <a class="code" href="group__group__sysclk__mf__funcs.html#gaf917222c5e1a0bb3dc2f7d398dcff05c">Cy_SysClk_ClkMfGetFrequency</a>();</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga420525301a89c8f5f45c97a0fb37ea6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga420525301a89c8f5f45c97a0fb37ea6f">&#9670;&nbsp;</a></span>Cy_SysClk_ClkMfGetDivider()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t Cy_SysClk_ClkMfGetDivider </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the clock divider of CLK_MF. </p>
<dl class="section return"><dt>Returns</dt><dd>divider value in range 1..256.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>This API is available for CAT1A and CAT1B devices.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: MFO is needed to source LCD with 1MHz in Deep Sleep mode. */</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__sysclk__mf__funcs.html#ga283d5413436f7a9f05b24d52ac2026be">Cy_SysClk_MfoEnable</a>(<span class="keyword">true</span>); <span class="comment">/* Enable MFO with Deep Sleep operation */</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__sysclk__mf__funcs.html#gab27fbf5f4e7b9856014fbf7c59eff78b">Cy_SysClk_ClkMfIsEnabled</a>()) <span class="comment">/* If CLK_MF is already enabled */</span></div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__sysclk__mf__funcs.html#ga8cc7f7635c71f5ea4da74950bc6521a4">Cy_SysClk_ClkMfDisable</a>();   <span class="comment">/* Disable CLK_MF */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (2UL != <a class="code" href="group__group__sysclk__mf__funcs.html#ga420525301a89c8f5f45c97a0fb37ea6f">Cy_SysClk_ClkMfGetDivider</a>()) <span class="comment">/* Check the divider */</span></div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__sysclk__mf__funcs.html#ga54c1e75dcdea293cdfd2662ceffa26e0">Cy_SysClk_ClkMfSetDivider</a>(2UL); <span class="comment">/* Set CLK_MF divider */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <a class="code" href="group__group__sysclk__mf__funcs.html#ga195a613b088f27c5d7667a6fecb0bbbc">Cy_SysClk_ClkMfEnable</a>();        <span class="comment">/* Enable CLK_MF */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Check the CLK_MF frequency */</span></div><div class="line">    uint32_t clkMfreq = <a class="code" href="group__group__sysclk__mf__funcs.html#gaf917222c5e1a0bb3dc2f7d398dcff05c">Cy_SysClk_ClkMfGetFrequency</a>();</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gaf917222c5e1a0bb3dc2f7d398dcff05c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf917222c5e1a0bb3dc2f7d398dcff05c">&#9670;&nbsp;</a></span>Cy_SysClk_ClkMfGetFrequency()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t Cy_SysClk_ClkMfGetFrequency </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reports the output clock signal frequency of CLK_MF. </p>
<dl class="section return"><dt>Returns</dt><dd>The frequency, in Hz.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>This API is available for CAT1A and CAT1B devices.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: MFO is needed to source LCD with 1MHz in Deep Sleep mode. */</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__sysclk__mf__funcs.html#ga283d5413436f7a9f05b24d52ac2026be">Cy_SysClk_MfoEnable</a>(<span class="keyword">true</span>); <span class="comment">/* Enable MFO with Deep Sleep operation */</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__sysclk__mf__funcs.html#gab27fbf5f4e7b9856014fbf7c59eff78b">Cy_SysClk_ClkMfIsEnabled</a>()) <span class="comment">/* If CLK_MF is already enabled */</span></div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__sysclk__mf__funcs.html#ga8cc7f7635c71f5ea4da74950bc6521a4">Cy_SysClk_ClkMfDisable</a>();   <span class="comment">/* Disable CLK_MF */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (2UL != <a class="code" href="group__group__sysclk__mf__funcs.html#ga420525301a89c8f5f45c97a0fb37ea6f">Cy_SysClk_ClkMfGetDivider</a>()) <span class="comment">/* Check the divider */</span></div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__sysclk__mf__funcs.html#ga54c1e75dcdea293cdfd2662ceffa26e0">Cy_SysClk_ClkMfSetDivider</a>(2UL); <span class="comment">/* Set CLK_MF divider */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <a class="code" href="group__group__sysclk__mf__funcs.html#ga195a613b088f27c5d7667a6fecb0bbbc">Cy_SysClk_ClkMfEnable</a>();        <span class="comment">/* Enable CLK_MF */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Check the CLK_MF frequency */</span></div><div class="line">    uint32_t clkMfreq = <a class="code" href="group__group__sysclk__mf__funcs.html#gaf917222c5e1a0bb3dc2f7d398dcff05c">Cy_SysClk_ClkMfGetFrequency</a>();</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gaacb30352c5e747c40be8f15b673ee54a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaacb30352c5e747c40be8f15b673ee54a">&#9670;&nbsp;</a></span>Cy_SysClk_ClkMfSetSource()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SysClk_ClkMfSetSource </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__group__sysclk__clk__mf__enums.html#gab217cdbbda6d1b5c9cd109c3e8bf5bfb">cy_en_clkmf_in_sources_t</a>&#160;</td>
          <td class="paramname"><em>source</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the source for the Medium frequency clock(clkMf). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td><a class="el" href="group__group__sysclk__clk__mf__enums.html#gab217cdbbda6d1b5c9cd109c3e8bf5bfb">cy_en_clkmf_in_sources_t</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>This API is available for CAT1B devices. </dd></dl>

</div>
</div>
<a id="ga336ac15ebc0e4d002717b0b15cd04bed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga336ac15ebc0e4d002717b0b15cd04bed">&#9670;&nbsp;</a></span>Cy_SysClk_ClkMfGetSource()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sysclk__clk__mf__enums.html#gab217cdbbda6d1b5c9cd109c3e8bf5bfb">cy_en_clkmf_in_sources_t</a> Cy_SysClk_ClkMfGetSource </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reports the source for the Medium frequency clock (clkMf). </p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sysclk__clk__mf__enums.html#gab217cdbbda6d1b5c9cd109c3e8bf5bfb">cy_en_clkmf_in_sources_t</a></dd></dl>
<dl class="section note"><dt>Note</dt><dd>This API is available for CAT1B devices. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
